<template>
  <div>
    <van-cell-group>
      <van-field v-model="nowPassword" label-align="left" label="当前密码" placeholder="当前密码" />
      <van-field v-model="newPassword" label-align="left" label="新密码" placeholder="新密码" />
      <van-field v-model="confirmNewPassword" label-align="left" label="确认新密码" placeholder="确认新密码" />
    </van-cell-group>
    <div class="yesBtn">
      <button>确定</button>
    </div>
  </div>
</template>

<script>
import { Field, CellGroup } from "vant";
export default {
  components: {
    "van-field": Field,
    "van-cell-group": CellGroup
  },
  data() {
    return {
      nowPassword: "",
      newPassword: "",
      confirmNewPassword: ""
    };
  }
};
</script>

<style lang="less" scoped>
.yesBtn {
  text-align: center;
  padding: 0.4rem 0 1rem;
  button {
    width: 80%;
    background-image: linear-gradient(to right, #cf2835, #e64a49);
    padding: 0.4rem 0;
    border-radius: 0.8rem;
    border: none;
    outline: none;
    color: white;
    font-size: 0.7rem;
  }
}
.formBox {
  li {
    display: flex;
    justify-content: space-between;
  }
}
</style>